function DY_scroll(wraper,prev02,next02,img,speed,or)
{   
    var wraper = $(wraper);
    var prev02 = $(prev02);
    var next02 = $(next02);
    var img = $(img).find('#mainul');
    var w = img.find('li').outerWidth(true);
    var s = speed; 
    var marginLeft = $('#mainul').css('marginLeft');
    var next='';
    next02.click(function()
    {
        img.animate({'margin-left':marginLeft},function()
        {
            img.find('li').eq(0).appendTo(img);
            img.css({'margin-left':marginLeft});
        });
        next=img.marginLeft;
    });
    prev02.click(function()
    {
        img.children('li:last').prependTo(img);
        img.css({'margin-left':next});
        img.animate({'margin-left':next});
    });
    if (or == true)
    {
        ad = setInterval(function() { next02.click();},s*1000);
        wraper.hover(function(){clearInterval(ad);},function(){ad = setInterval(function() { next02.click();},s*1000);});
    }
}